﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class TaoBaoApi_TB_ItemCat : System.Web.UI.Page
{
    protected void Page_PreInit(object sender, EventArgs e)
    {
        Page.Theme = BLL.Common.GetWSMThemes();
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
            new TBCommon().BindTBShop(ddlShop);
    }
    //下载淘宝类目
    protected void btnDown_Click(object sender, EventArgs e)
    {
        if (ddlShop.SelectedIndex < 0)
        {
            ShowMessage("请选择淘宝店铺。");
            return;
        }
        string name = ddlShop.SelectedItem.Text;        
        Response.Redirect("tb_itemcat2.aspx?user=" + name);
    }  
    void ShowMessage(string msg)
    {
        new TBCommon().ShowMessage(Page, msg);
    }
}
